<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>Table of Contents - zlib: Ruby Standard Library Documentation</title>


<script src="./js/navigation.js" defer></script>
<script src="./js/search.js" defer></script>
<script src="./js/search_index.js" defer></script>
<script src="./js/searcher.js" defer></script>
<script src="./js/darkfish.js" defer></script>

<script src="./js/jquery-3.2.0.min.js"></script>

<script src="./js/vue.min.js"></script>
<script src="./js/js.cookie.min.js"></script>

<link href="./css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="./css/rdoc.css" rel="stylesheet">
<link href="./css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "./";
  var index_rel_prefix = "./";
  var darkModeCsseHref = "./css/rdoc-dm.css"
  var defaultModeCssHref = "./css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" class="table-of-contents">
  <!-- table_of_contents.html -->
  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    

    <div id='extraz'><div class='adzbox-index'  >
        
      </div>         
    </div>

    <main role="main">
    <h1 class="class">Table of Contents - zlib: Ruby Standard Library Documentation</h1>


          <h2 id="classes">Classes and Modules</h2>
          <ul>
              <li class="module">
                <a href="Zlib.html">Zlib</a>

                <ul>
                    <li><a href="Zlib.html#label-Sample+usage">Sample usage</a>
                    <li><a href="Zlib.html#label-Class+tree">Class tree</a>
                    </ul>
                  </li>
              <li class="class">
                <a href="Zlib/BufError.html">Zlib::BufError</a>
                  </li>
              <li class="class">
                <a href="Zlib/DataError.html">Zlib::DataError</a>
                  </li>
              <li class="class">
                <a href="Zlib/Deflate.html">Zlib::Deflate</a>
                  </li>
              <li class="class">
                <a href="Zlib/Error.html">Zlib::Error</a>
                  </li>
              <li class="class">
                <a href="Zlib/GzipFile.html">Zlib::GzipFile</a>

                <ul>
                    <li><a href="Zlib/GzipFile.html#label-Method+Catalogue">Method Catalogue</a>
                    </ul>
                  </li>
              <li class="class">
                <a href="Zlib/GzipFile/CRCError.html">Zlib::GzipFile::CRCError</a>
                  </li>
              <li class="class">
                <a href="Zlib/GzipFile/Error.html">Zlib::GzipFile::Error</a>
                  </li>
              <li class="class">
                <a href="Zlib/GzipFile/LengthError.html">Zlib::GzipFile::LengthError</a>
                  </li>
              <li class="class">
                <a href="Zlib/GzipFile/NoFooter.html">Zlib::GzipFile::NoFooter</a>
                  </li>
              <li class="class">
                <a href="Zlib/GzipReader.html">Zlib::GzipReader</a>

                <ul>
                    <li><a href="Zlib/GzipReader.html#label-Method+Catalogue">Method Catalogue</a>
                    </ul>
                  </li>
              <li class="class">
                <a href="Zlib/GzipWriter.html">Zlib::GzipWriter</a>
                  </li>
              <li class="class">
                <a href="Zlib/InProgressError.html">Zlib::InProgressError</a>
                  </li>
              <li class="class">
                <a href="Zlib/Inflate.html">Zlib::Inflate</a>
                  </li>
              <li class="class">
                <a href="Zlib/MemError.html">Zlib::MemError</a>
                  </li>
              <li class="class">
                <a href="Zlib/NeedDict.html">Zlib::NeedDict</a>
                  </li>
              <li class="class">
                <a href="Zlib/StreamEnd.html">Zlib::StreamEnd</a>
                  </li>
              <li class="class">
                <a href="Zlib/StreamError.html">Zlib::StreamError</a>
                  </li>
              <li class="class">
                <a href="Zlib/VersionError.html">Zlib::VersionError</a>
                  </li>
              <li class="class">
                <a href="Zlib/ZStream.html">Zlib::ZStream</a>

                <ul>
                    <li><a href="Zlib/ZStream.html#label-Method+Catalogue">Method Catalogue</a>
                    </ul>
                  </li>
                </ul>

                <h2 id="methods">Methods</h2>
                <ul>

                    <li class="method">
                      <a href="Zlib.html#method-c-adler32">::adler32</a>
                      &mdash;
                      <span class="container">Zlib</span>

                    <li class="method">
                      <a href="Zlib.html#method-c-adler32_combine">::adler32_combine</a>
                      &mdash;
                      <span class="container">Zlib</span>

                    <li class="method">
                      <a href="Zlib.html#method-c-crc32">::crc32</a>
                      &mdash;
                      <span class="container">Zlib</span>

                    <li class="method">
                      <a href="Zlib.html#method-c-crc32_combine">::crc32_combine</a>
                      &mdash;
                      <span class="container">Zlib</span>

                    <li class="method">
                      <a href="Zlib.html#method-c-crc_table">::crc_table</a>
                      &mdash;
                      <span class="container">Zlib</span>

                    <li class="method">
                      <a href="Zlib/Deflate.html#method-c-deflate">::deflate</a>
                      &mdash;
                      <span class="container">Zlib::Deflate</span>

                    <li class="method">
                      <a href="Zlib.html#method-c-deflate">::deflate</a>
                      &mdash;
                      <span class="container">Zlib</span>

                    <li class="method">
                      <a href="Zlib.html#method-c-gunzip">::gunzip</a>
                      &mdash;
                      <span class="container">Zlib</span>

                    <li class="method">
                      <a href="Zlib.html#method-c-gzip">::gzip</a>
                      &mdash;
                      <span class="container">Zlib</span>

                    <li class="method">
                      <a href="Zlib/Inflate.html#method-c-inflate">::inflate</a>
                      &mdash;
                      <span class="container">Zlib::Inflate</span>

                    <li class="method">
                      <a href="Zlib.html#method-c-inflate">::inflate</a>
                      &mdash;
                      <span class="container">Zlib</span>

                    <li class="method">
                      <a href="Zlib/Deflate.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Zlib::Deflate</span>

                    <li class="method">
                      <a href="Zlib/Inflate.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Zlib::Inflate</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-c-new">::new</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-c-open">::open</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-c-open">::open</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-c-wrap">::wrap</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-c-zcat">::zcat</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib.html#method-c-zlib_version">::zlib_version</a>
                      &mdash;
                      <span class="container">Zlib</span>

                    <li class="method">
                      <a href="Zlib/Deflate.html#method-i-3C-3C">#&lt;&lt;</a>
                      &mdash;
                      <span class="container">Zlib::Deflate</span>

                    <li class="method">
                      <a href="Zlib/Inflate.html#method-i-3C-3C">#&lt;&lt;</a>
                      &mdash;
                      <span class="container">Zlib::Inflate</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-i-3C-3C">#&lt;&lt;</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/Inflate.html#method-i-add_dictionary">#add_dictionary</a>
                      &mdash;
                      <span class="container">Zlib::Inflate</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-adler">#adler</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-avail_in">#avail_in</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-avail_out">#avail_out</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-avail_out-3D">#avail_out=</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-close">#close</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-i-close">#close</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-closed-3F">#closed?</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-i-closed-3F">#closed?</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-i-comment">#comment</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-i-comment-3D">#comment=</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-i-crc">#crc</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-data_type">#data_type</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/Deflate.html#method-i-deflate">#deflate</a>
                      &mdash;
                      <span class="container">Zlib::Deflate</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-each">#each</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-each_byte">#each_byte</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-each_char">#each_char</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-each_line">#each_line</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-end">#end</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-ended-3F">#ended?</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-eof">#eof</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-eof-3F">#eof?</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-external_encoding">#external_encoding</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-finish">#finish</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-i-finish">#finish</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-finished-3F">#finished?</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/Deflate.html#method-i-flush">#flush</a>
                      &mdash;
                      <span class="container">Zlib::Deflate</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-i-flush">#flush</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-flush_next_in">#flush_next_in</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-flush_next_out">#flush_next_out</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-getbyte">#getbyte</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-getc">#getc</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-gets">#gets</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/Inflate.html#method-i-inflate">#inflate</a>
                      &mdash;
                      <span class="container">Zlib::Inflate</span>

                    <li class="method">
                      <a href="Zlib/Deflate.html#method-i-initialize_copy">#initialize_copy</a>
                      &mdash;
                      <span class="container">Zlib::Deflate</span>

                    <li class="method">
                      <a href="Zlib/GzipFile/Error.html#method-i-inspect">#inspect</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile::Error</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-i-level">#level</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-lineno">#lineno</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-lineno-3D">#lineno=</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-i-mtime">#mtime</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-i-mtime-3D">#mtime=</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-i-orig_name">#orig_name</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-i-orig_name-3D">#orig_name=</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-i-os_code">#os_code</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/Deflate.html#method-i-params">#params</a>
                      &mdash;
                      <span class="container">Zlib::Deflate</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-i-pos">#pos</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-pos">#pos</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-i-print">#print</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-i-printf">#printf</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-i-putc">#putc</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-i-puts">#puts</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-read">#read</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-readbyte">#readbyte</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-readchar">#readchar</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-readline">#readline</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-readlines">#readlines</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-readpartial">#readpartial</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-reset">#reset</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-rewind">#rewind</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/Deflate.html#method-i-set_dictionary">#set_dictionary</a>
                      &mdash;
                      <span class="container">Zlib::Deflate</span>

                    <li class="method">
                      <a href="Zlib/Inflate.html#method-i-set_dictionary">#set_dictionary</a>
                      &mdash;
                      <span class="container">Zlib::Inflate</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-stream_end-3F">#stream_end?</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/Inflate.html#method-i-sync">#sync</a>
                      &mdash;
                      <span class="container">Zlib::Inflate</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-i-sync">#sync</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-i-sync-3D">#sync=</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/Inflate.html#method-i-sync_point-3F">#sync_point?</a>
                      &mdash;
                      <span class="container">Zlib::Inflate</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-i-tell">#tell</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-tell">#tell</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipFile.html#method-i-to_io">#to_io</a>
                      &mdash;
                      <span class="container">Zlib::GzipFile</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-total_in">#total_in</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/ZStream.html#method-i-total_out">#total_out</a>
                      &mdash;
                      <span class="container">Zlib::ZStream</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-ungetbyte">#ungetbyte</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-ungetc">#ungetc</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipReader.html#method-i-unused">#unused</a>
                      &mdash;
                      <span class="container">Zlib::GzipReader</span>

                    <li class="method">
                      <a href="Zlib/GzipWriter.html#method-i-write">#write</a>
                      &mdash;
                      <span class="container">Zlib::GzipWriter</span>
                    </ul>
                    </main>
                  </div> 

<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>. </p><p><a href="https://jamesbritt.bandcamp.com/">Hack your world.  Feed your head.  Live curious</a>.</p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

